package com.chaoyong.higo.enums;

import com.chaoyong.higo.R;
import com.chaoyong.higo.fragment.FragAllShops;
import com.chaoyong.higo.fragment.FragHomePage;
import com.chaoyong.higo.fragment.FragWodeduobao;
import com.chaoyong.higo.fragment.FragNewsAnnounced;
import com.chaoyong.higo.fragment.FragShoppingBar;

public enum MainTab {
	
	HOME(0,R.string.bar_text_0,R.drawable.tab_menu_home,FragHomePage.class),
	ALL(1,R.string.bar_text_1,R.drawable.tab_menu_all,FragAllShops.class),
	NEWSET(2,R.string.bar_text_2,R.drawable.tab_menu_newsest,FragNewsAnnounced.class),
	CARS(3,R.string.bar_text_3,R.drawable.tab_menu_car,FragShoppingBar.class),
	MY(4,R.string.bar_text_4,R.drawable.tab_menu_my,FragWodeduobao.class);
	
	private int idx;
    private int resName;
    private int resIcon;
    private Class<?> clz;

    private MainTab(int idx, int resName, int resIcon, Class<?> clz) {
        this.idx = idx;
        this.resName = resName;
        this.resIcon = resIcon;
        this.clz = clz;
    }

    public int getIdx() {
        return idx;
    }

    public void setIdx(int idx) {
        this.idx = idx;
    }

    public int getResName() {
        return resName;
    }

    public void setResName(int resName) {
        this.resName = resName;
    }

    public int getResIcon() {
        return resIcon;
    }

    public void setResIcon(int resIcon) {
        this.resIcon = resIcon;
    }

    public Class<?> getClz() {
        return clz;
    }

    public void setClz(Class<?> clz) {
        this.clz = clz;
    }
}
